import CodingRuleObjectComp from "containers/setting/coding-rule/coding-rule-object";
import NewCodingRuleObjectComp from "containers/setting/coding-rule/new-coding-rule-object";
import CodingRuleComp from "containers/setting/coding-rule/coding-rule";
import CodingRuleValueComp from "containers/setting/coding-rule/coding-rule-value";
import NewCodingRuleComp from "containers/setting/coding-rule/new-coding-rule";
//编码规则定义
const CodingRuleObjectMenu =  {
  key:'coding-rule-object',
  url:'/main/setting/coding-rule-object',
  components:CodingRuleObjectComp,
  parent: 'setting',
  tenant: true,
  children:{
    //新建编码规则对象
    newCodingRuleObject: {
      key:'new-coding-rule-object',
      url:'/main/setting/coding-rule-object/new-coding-rule-object',
      components: NewCodingRuleObjectComp,
      parent: 'coding-rule-object'
    },
    //编码规则
    codingRule: {
      key:'coding-rule',
      url:'/main/setting/coding-rule-object/coding-rule/:id',
      components: CodingRuleComp,
      parent: 'coding-rule-object'
    },
    //编码规则明细
    codingRuleValue: {
      key:'coding-rule-value',
      url:'/main/setting/coding-rule-object/coding-rule/:id/coding-rule-value/:ruleId',
      components: CodingRuleValueComp,
      parent: 'coding-rule'
    },
    //新建编码规则
    newCodingRule: {
      key:'new-coding-rule',
      url:'/main/setting/coding-rule-object/coding-rule/:id/new-coding-rule',
      components: NewCodingRuleComp,
      parent: 'coding-rule'
    }
  }
};
export default CodingRuleObjectMenu;
